package com.huo.base.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @USER: yangw
 * @Date: 2018/4/1
 * @Time: 17:47
 * @version:1.0
 */

@Component
public class MyBean {

    private final MongoTemplate mongoTemplate;

    @Autowired
    public MyBean(MongoTemplate mongoTemplate){
        this.mongoTemplate = mongoTemplate;
    }
}
